<?php
namespace app\common\component\fruit;

use app\common\model\FruitSell as FruitSellModel;

class FruiteSellService {
	public function create($data) {
		$fruitSellModel = FruitSellModel::create($data);
		
		if($fruitSellModel) {
			return [
				'code' => 0,
				'data' => ['fruit_sell' => $fruitSellModel]
			];
		}

		return [
			'code' => -1,
			'message' => '创建失败,fruit_sell'
		];
	}
}